package com.td.module.agro.controller.admin.input.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 投入品 Excel 导出 Request VO", description = "参数和 InputPageReqVO 是一致的")
@Data
public class InputExportReqVO {

    @ApiModelProperty(value = "投入品名称", example = "张三")
    private String inputName;

    @ApiModelProperty(value = "投入品类别（1.种子 2.农药 3.化肥）", example = "1")
    private Integer inputType;

    @ApiModelProperty(value = "投入品描述")
    private String inputDescribe;

    @ApiModelProperty(value = "投入品价格", example = "27979")
    private BigDecimal inputPrice;

    @ApiModelProperty(value = "投入时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] inputTime;

    @ApiModelProperty(value = "创建日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
